

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=dark>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/fluid.png">
  <link rel="icon" href="/img/icon/dw.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="author" content="Memory">
  <meta name="keywords" content="">
  
    <meta name="description" content="🍟 探索JavaWeb开发的基础和精髓，掌握Web应用程序的核心概念和技术">
<meta property="og:type" content="article">
<meta property="og:title" content="从零开始的 JavaWeb 之旅">
<meta property="og:url" content="http://example.com/2023/06/03/%E4%BB%8E%E9%9B%B6%E5%BC%80%E5%A7%8B%E7%9A%84%20JavaWeb%20%E4%B9%8B%E6%97%85/index.html">
<meta property="og:site_name" content="Memory&#39;s blog">
<meta property="og:description" content="🍟 探索JavaWeb开发的基础和精髓，掌握Web应用程序的核心概念和技术">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="http://example.com/img/artical/water.jpg">
<meta property="article:published_time" content="2023-06-03T14:20:43.000Z">
<meta property="article:modified_time" content="2024-06-03T03:33:12.000Z">
<meta property="article:author" content="Memory">
<meta property="article:tag" content="经验">
<meta property="article:tag" content="JavaWeb">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="http://example.com/img/artical/water.jpg">
  
  
  
  <title>从零开始的 JavaWeb 之旅 - Memory&#39;s blog</title>

  <link  rel="stylesheet" href="https://lib.baomitu.com/twitter-bootstrap/4.6.1/css/bootstrap.min.css" />



  <link  rel="stylesheet" href="https://lib.baomitu.com/github-markdown-css/4.0.0/github-markdown.min.css" />

  <link  rel="stylesheet" href="https://lib.baomitu.com/hint.css/2.7.0/hint.min.css" />

  <link  rel="stylesheet" href="https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.css" />



<!-- 主题依赖的图标库，不要自行修改 -->
<!-- Do not modify the link that theme dependent icons -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_hj8rtnfg7um.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_lbnruvf0jn.css">


<link  rel="stylesheet" href="/css/main.css" />


  <link id="highlight-css" rel="stylesheet" href="/css/highlight.css" />
  
    <link id="highlight-css-dark" rel="stylesheet" href="/css/highlight-dark.css" />
  




  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    Fluid.ctx = Object.assign({}, Fluid.ctx)
    var CONFIG = {"hostname":"example.com","root":"/","version":"1.9.4","typing":{"enable":true,"typeSpeed":100,"cursorChar":"_","loop":false,"scope":[]},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"left","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"code_language":{"enable":true,"default":"TEXT"},"copy_btn":true,"image_caption":{"enable":true},"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"placement":"right","headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":false,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":true,"follow_dnt":true,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname","ignore_local":false}},"search_path":"/local-search.xml"};

    if (CONFIG.web_analytics.follow_dnt) {
      var dntVal = navigator.doNotTrack || window.doNotTrack || navigator.msDoNotTrack;
      Fluid.ctx.dnt = dntVal && (dntVal.startsWith('1') || dntVal.startsWith('yes') || dntVal.startsWith('on'));
    }
  </script>
  <script  src="/js/utils.js" ></script>
  <script  src="/js/color-schema.js" ></script>
  

  

  

  

  

  

  

  



  
<meta name="generator" content="Hexo 5.4.2"></head>


<body>
  

  <header>
    

<div class="header-inner" style="height: 75vh;">
  <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="/">
      <strong>Memory&#39;s blog</strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/">
                <i class="iconfont icon-home-fill"></i>
                <span>首页</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/">
                <i class="iconfont icon-archive-fill"></i>
                <span>归档</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/categories/">
                <i class="iconfont icon-category-fill"></i>
                <span>分类</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/">
                <i class="iconfont icon-tags-fill"></i>
                <span>标签</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/">
                <i class="iconfont icon-user-fill"></i>
                <span>关于</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/links/">
                <i class="iconfont icon-link-fill"></i>
                <span>友链</span>
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              <i class="iconfont icon-search"></i>
            </a>
          </li>
          
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">
              <i class="iconfont icon-dark" id="color-toggle-icon"></i>
            </a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

  

<div id="banner" class="banner" parallax=true
     style="background: url('/img/newBG/girl.jpg') no-repeat center center; background-size: cover;">
  <div class="full-bg-img">
    <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
      <div class="banner-text text-center fade-in-up">
        <div class="h2">
          
            <span id="subtitle" data-typed-text="从零开始的 JavaWeb 之旅"></span>
          
        </div>

        
          
  <div class="mt-3">
    
      <span class="post-meta mr-2">
        <i class="iconfont icon-author" aria-hidden="true"></i>
        Memory
      </span>
    
    
      <span class="post-meta">
        <i class="iconfont icon-date-fill" aria-hidden="true"></i>
        <time datetime="2023-06-03 22:20" pubdate>
          2023年6月3日 晚上
        </time>
      </span>
    
  </div>

  <div class="mt-1">
    
      <span class="post-meta mr-2">
        <i class="iconfont icon-chart"></i>
        
          23k 字
        
      </span>
    

    
      <span class="post-meta mr-2">
        <i class="iconfont icon-clock-fill"></i>
        
        
        
          58 分钟
        
      </span>
    

    
    
      
        <span id="leancloud-page-views-container" class="post-meta" style="display: none">
          <i class="iconfont icon-eye" aria-hidden="true"></i>
          <span id="leancloud-page-views"></span> 次
        </span>
        
      
    
  </div>


        
      </div>

      
    </div>
  </div>
</div>

</div>

  </header>

  <main>
    
      

<div class="container-fluid nopadding-x">
  <div class="row nomargin-x">
    <div class="side-col d-none d-lg-block col-lg-2">
      
  <aside class="sidebar category-bar" style="margin-right: -1rem">
    





<div class="category-list">
  
  
    
    
    
    <div class="category row nomargin-x">
      <a class="category-item 
          list-group-item category-item-action col-10 col-md-11 col-xm-11" title="JavaWeb"
        id="heading-03b719cb9240be3fcb867cb7fda9e9df" role="tab" data-toggle="collapse" href="#collapse-03b719cb9240be3fcb867cb7fda9e9df"
        aria-expanded="true"
      >
        JavaWeb
        <span class="list-group-count">(1)</span>
        <i class="iconfont icon-arrowright"></i>
      </a>
      
      <div class="category-collapse collapse show" id="collapse-03b719cb9240be3fcb867cb7fda9e9df"
           role="tabpanel" aria-labelledby="heading-03b719cb9240be3fcb867cb7fda9e9df">
        
        
          
          
  <div class="category-post-list">
    
    
  </div>

          
  
    
    
    
    <div class="category-sub row nomargin-x">
      <a class="category-subitem 
          list-group-item category-item-action col-10 col-md-11 col-xm-11" title="经验"
        id="heading-32a8e000e928e6dc255876d9fc0178b3" role="tab" data-toggle="collapse" href="#collapse-32a8e000e928e6dc255876d9fc0178b3"
        aria-expanded="true"
      >
        经验
        <span class="list-group-count">(1)</span>
        <i class="iconfont icon-arrowright"></i>
      </a>
      
      <div class="category-collapse collapse show" id="collapse-32a8e000e928e6dc255876d9fc0178b3"
           role="tabpanel" aria-labelledby="heading-32a8e000e928e6dc255876d9fc0178b3">
        
        
          
  <div class="category-post-list">
    
    
      
      
        <a href="/2023/06/03/%E4%BB%8E%E9%9B%B6%E5%BC%80%E5%A7%8B%E7%9A%84%20JavaWeb%20%E4%B9%8B%E6%97%85/" title="从零开始的 JavaWeb 之旅"
           class="list-group-item list-group-item-action
           active">
          <span class="category-post">从零开始的 JavaWeb 之旅</span>
        </a>
      
    
  </div>

        
      </div>
    </div>
  
        
      </div>
    </div>
  
</div>


  </aside>


    </div>

    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div id="board">
          <article class="post-content mx-auto">
            <!-- SEO header -->
            <h1 style="display: none">从零开始的 JavaWeb 之旅</h1>
            
              <p class="note note-success">
                
                  
                    本文最后更新于：1 个月前
                  
                
              </p>
            
            
              <div class="markdown-body">
                
                <h2 id="系统学习"><a href="#系统学习" class="headerlink" title="系统学习"></a>系统学习</h2><blockquote>
<p>2024年5月31日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/RegSoleil/article/details/125456245">JSP运行原理_jsp网页运行原理-CSDN博客</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/weixin_45832694/article/details/127152110">JSP技术原理_jsp运行原理-CSDN博客</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/SYJ_1835_NGE/article/details/84141285">JSP运行原理_简述jsp的基本运行原理-CSDN博客</a></p>
<figure class="highlight mipsasm"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs mipsasm"><span class="hljs-keyword">JSP全名是Java </span>Server Pages，它是建立在Servlet规范之上的动态网页开发技术。在<span class="hljs-keyword">JSP文件中，HTML代码与Java代码共同存在，其中，HTML代码用来实现网页 </span>中静态内容的显示，<span class="hljs-keyword">Java代码用来实现网页中动态内容的显示。为了与传统HTML有所区别，JSP文件的扩展名为 </span>.<span class="hljs-keyword">jsp </span><br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/m0_52861000/article/details/127953024">Servlet是什么？怎么使用？_什么是servlet-CSDN博客</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/weixin_67630324/article/details/128883982">Servlet简单介绍_servlet是什么-CSDN博客</a></p>
<figure class="highlight arduino"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><code class="hljs arduino">Web <span class="hljs-built_in">Client</span> 向 Servlet 容器（ Tomcat ）发出 Http 请求Servlet 容器接收 Web <span class="hljs-built_in">Client</span> 的请求<br>Servlet 容器创建一个 HttpServletRequest 对象，将 Web <span class="hljs-built_in">Client</span> 请求的信息封装到这个对象中<br>Servlet 容器创建一个 HttpServletResponse 对象<br>Servlet 容器调 HttpServlet 对象 service 方法，把 Request 与 Response 作为参数，传给 HttpServlet<br>HttpServlet 调用 HttpServletRequest 对象的有关方法，获取 Http 请求信息<br>HttpServlet 调用 HttpServletResponse 对象的有关方法，生成响应数据<br>Servlet 容器把 HttpServlet 的响应结果传给 Web <span class="hljs-built_in">Client</span><br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/Li_Ya_Fei/article/details/133410371">【JavaEE基础学习打卡08】JSP之初次认识say hello！_jsp执行流程-CSDN博客</a></p>
<p>[Servlet是什么？怎么使用？_什么是servlet-CSDN博客](</p>
<h2 id="经验"><a href="#经验" class="headerlink" title="经验"></a>经验</h2><p>使用 maven 打个 war 包，报了一连串的错误：</p>
<ol>
<li>IDEA maven 未配置好，配置一下就行</li>
<li>有依赖下载失败，换了新的版本解决了</li>
<li>测试用例有错误，打包时直接忽略掉测试用例就行</li>
<li>Cannot access defaults field of Properties问题，看下面</li>
</ol>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/mzp520lf/article/details/126247543">Cannot access defaults field of Properties问题的解决-CSDN博客</a></p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><code class="hljs java">&lt;build&gt;<br>    &lt;plugins&gt;<br>        &lt;plugin&gt;<br>            &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;<br>            &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;<br>            &lt;version&gt;<span class="hljs-number">3.3</span><span class="hljs-number">.1</span>&lt;/version&gt;<br>        &lt;/plugin&gt;<br>    &lt;/plugins&gt;<br>&lt;/build&gt;<br></code></pre></td></tr></table></figure>

<p>有必要图文总结下这方面的经验了。</p>
<p>maven 打包、本地起 tomcat 服务器</p>
<p><img src="https://gitee.com/deng-2022/pictures/raw/master/images/image-20240326104155627.png" alt="image-20240326104155627"></p>
<p><img src="https://gitee.com/deng-2022/pictures/raw/master/images/image-20240326104311608.png" alt="image-20240326104311608"></p>
<p>像这样的报错，十有八九是项目使用的 Java 版本过低，提高到 JDK8 即可：</p>
<p><img src="https://gitee.com/deng-2022/pictures/raw/master/images/image-20240326104422888.png" alt="image-20240326104422888"></p>
<p>最不想看到的就是 tomcat 服务起来之后，出现这样的情况：</p>
<p><img src="https://gitee.com/deng-2022/pictures/raw/master/images/image-20240326111338744.png" alt="image-20240326111338744"></p>
<p>真是没有任何可以下手的地方</p>
<h2 id="总结"><a href="#总结" class="headerlink" title="总结"></a>总结</h2><p>有必要图文总结下这方面的经验了。</p>
<p>maven 打包、本地起 tomcat 服务器</p>
<p><img src="https://gitee.com/deng-2022/pictures/raw/master/images/image-20240327101230706.png" alt="image-20240327101230706"></p>
<p><img src="https://gitee.com/deng-2022/pictures/raw/master/images/image-20240327101621140.png" alt="image-20240327101621140"></p>
<p><a target="_blank" rel="noopener" href="https://zhidao.baidu.com/question/1520846022165534460.html">程序包javax.annotation不存在？_百度知道 (baidu.com)</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.51cto.com/u_16213393/7183529">错误: 程序包javax.annotation不存在_mob64ca12e732bb的技术博客_51CTO博客</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/AdminGuan/article/details/102637397">报错 java: 程序包javax.servlet.http不存在-CSDN博客</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/zwl1584671413/article/details/79571249">程序包 javax.servlet 不存在 解决办法_helloservlet.java:4: 错误: 程序包javax.servlet.http不存在 -CSDN博客</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/m0_62314761/article/details/130968674">java: 程序包javax.servlet不存在、 java: 程序包javax.servlet.http不存在 java: 程序包javax.servlet.annotation不存在-CSDN博客</a></p>
<p>跟着一通操作，还真打包成功了。</p>
<h2 id="朔州市检察院可视化"><a href="#朔州市检察院可视化" class="headerlink" title="朔州市检察院可视化"></a>朔州市检察院可视化</h2><h3 id="后端"><a href="#后端" class="headerlink" title="后端"></a>后端</h3><p>后端安装子模块出现问题：</p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/m0_53623945/article/details/122660254">关于pom.xml一直提示Could not transfer artifact（无法搬运）+无法解析maven依赖的问题，我在学习springboot的过程中遇到的一些问题-CSDN博客</a></p>
<p>这个问题我直接执行一键安装全部模块，然后单独安装每个子模块就可以</p>
<p><img src="https://gitee.com/deng-2022/pictures/raw/master/images/image-20240327113245582.png" alt="image-20240327113245582"></p>
<h3 id="前端"><a href="#前端" class="headerlink" title="前端"></a>前端</h3><p><strong>若依前端出现报错，解决方法：</strong></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/m0_68226879/article/details/131043610">若依报错解决_&gt; ruoyi@3.8.6 dev &gt; vue-cli-service serve info sta-CSDN博客</a></p>
<figure class="highlight elixir"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs elixir"><span class="hljs-variable">$env</span><span class="hljs-symbol">:NODE_OPTIONS=<span class="hljs-string">&quot;--openssl-legacy-provider&quot;</span></span><br></code></pre></td></tr></table></figure>

<p>执行这条命令，确实百分百永久解决问题</p>
<p><img src="https://gitee.com/deng-2022/pictures/raw/master/images/image-20240327140712627.png" alt="image-20240327140712627"></p>
<p><img src="https://gitee.com/deng-2022/pictures/raw/master/images/image-20240327105609337.png" alt="image-20240327105609337"></p>
<p><img src="https://gitee.com/deng-2022/pictures/raw/master/images/image-20240327105629244.png" alt="image-20240327105629244"></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/weixin_44259720/article/details/130385797">Java spring 注解 @PostConstruct 实战讲解-CSDN博客</a></p>
<h3 id="运行"><a href="#运行" class="headerlink" title="运行"></a>运行</h3><p>很好，问题已解决：</p>
<p>这个错误日志显示了一个<code>java.lang.NoClassDefFoundError</code>异常，具体是找不到<code>javax.xml.bind.DatatypeConverter</code>类。<code>DatatypeConverter</code>是Java平台的一个类，用于在不同类型的Java数据类型和字符串之间进行转换，它属于Java的JAXB（Java Architecture for XML Binding）API的一部分。</p>
<p>这个异常通常发生在Java 9及以上版本的环境中，因为从Java 9开始，JAXB不再作为Java SE的一部分，而是被标记为模块化的JDK中的可选部分。如果你的应用是基于Java 9或更高版本，并且你没有显式地将JAXB添加到你的项目依赖中，就可能会遇到这个问题。</p>
<p>要解决这个问题，你有以下几个选项：</p>
<ol>
<li><p><strong>添加JAXB依赖</strong>：<br>在你的项目构建文件（如Maven的<code>pom.xml</code>或Gradle的<code>build.gradle</code>）中，添加JAXB的依赖。例如，如果你使用Maven，可以添加如下依赖：</p>
<figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><code class="hljs xml"><span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>  <br>    <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>javax.xml.bind<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>  <br>    <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>jaxb-api<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>  <br>    <span class="hljs-tag">&lt;<span class="hljs-name">version</span>&gt;</span>2.3.1<span class="hljs-tag">&lt;/<span class="hljs-name">version</span>&gt;</span>  <br><span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>  <br><span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>  <br>    <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.glassfish.jaxb<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>  <br>    <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>jaxb-runtime<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>  <br>    <span class="hljs-tag">&lt;<span class="hljs-name">version</span>&gt;</span>2.3.1<span class="hljs-tag">&lt;/<span class="hljs-name">version</span>&gt;</span>  <br><span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span><br></code></pre></td></tr></table></figure>

<p>确保使用与你项目兼容的JAXB版本。</p>
</li>
<li><p><strong>使用Java 8</strong>：<br>如果你的项目没有特定的理由必须使用Java 9或更高版本，你可以考虑切换回Java 8，因为JAXB在Java 8中是内置的。</p>
</li>
<li><p><strong>添加JVM参数</strong>：<br>如果你使用的是Java 9或更高版本，并且不想修改项目依赖，你可以尝试通过添加JVM参数来启用JAXB模块。例如，你可以添加如下JVM参数：</p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs shell">shell复制代码<br><br>--add-modules java.se.ee<br></code></pre></td></tr></table></figure>

<p>然而，请注意，这种方法并不是官方推荐的，并且可能在未来的Java版本中不再有效。</p>
</li>
<li><p><strong>检查代码库</strong>：<br>如果<code>DatatypeConverter</code>是由某个库间接使用的，那么你可能需要更新这个库到支持Java 9及以上版本的版本，或者寻找一个替代库。</p>
</li>
</ol>
<p>请根据你的具体情况选择最合适的解决方案。如果你正在使用Spring Boot，确保你的Spring Boot版本与你的Java版本兼容，因为Spring Boot通常会处理这类依赖问题。如果问题依然存在，可能需要进一步检查你的项目配置和依赖关系。</p>
<p>入参：部门id（belongDeptId），排名（sortNum），日期（time），指标等级（indexLevel）</p>
<p>根据时间（time）获取 newTime；根据部门id（belongDeptId）获取父单位id（parentId）；根据（newTime + parentId）更新指标等级（indexLevel）；根据指标等级（indexLevel）拿到字典类型（dictType）</p>
<p>联表查询指标库（bus_index_library）、指标数据（bus_index_value）、部门表（bus_dept）</p>
<p>朔州市查询，部门就为朔州市院；各县市查询，部门为对应县市院。</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><code class="hljs java">&lt;select id=<span class="hljs-string">&quot;selectRankingDetails&quot;</span> resultType=<span class="hljs-string">&quot;com.zw.business.domain.vo.ResultVo&quot;</span>&gt;<br>    select d.index_value_id id, d.index_id indexId, belong_dept_id belongDeptId, sort_num sortNum, index_name indexName, index_until indexUntil,<br>        index_type indexType, index_value indexValue, index_parent_value indexParentValue,d.group_sort as groupSort,<br>        e.notification as notification ,e.index_order as indexOrder, e.index_logo as indexLogo<br>        from bus_index_value d left join bus_index_library e on d.index_id=e.index_id left join sys_dept f <span class="hljs-type">on</span> <span class="hljs-variable">belong_dept_id</span> <span class="hljs-operator">=</span> dept_id<br>        <span class="hljs-type">where</span> <span class="hljs-variable">belong_dept_id</span> <span class="hljs-operator">=</span> #&#123;belongDeptId&#125;<br>        &lt;<span class="hljs-keyword">if</span> test=<span class="hljs-string">&quot;indexIds != null and indexIds != &#x27;&#x27;&quot;</span>&gt; and d.index_id <span class="hljs-title function_">in</span> <span class="hljs-params">($&#123;indexIds&#125;)</span>&lt;/<span class="hljs-keyword">if</span>&gt;<br>        &lt;<span class="hljs-keyword">if</span> test=<span class="hljs-string">&quot;sortNum != null and sortNum != &#x27;&#x27;&quot;</span>&gt; and d.sort_num = #&#123;sortNum&#125; &lt;/<span class="hljs-keyword">if</span>&gt;<br>        &lt;<span class="hljs-keyword">if</span> test=<span class="hljs-string">&quot;newTime != null and newTime != &#x27;&#x27;&quot;</span>&gt; and d.index_time like <span class="hljs-title function_">concat</span><span class="hljs-params">(#&#123;newTime&#125;,<span class="hljs-string">&#x27;%&#x27;</span>)</span> &lt;/<span class="hljs-keyword">if</span>&gt;<br>        &lt;<span class="hljs-keyword">if</span> test=<span class="hljs-string">&quot;valueLevel != null and valueLevel != &#x27;&#x27;&quot;</span>&gt; and d.value_level = #&#123;valueLevel&#125; &lt;/<span class="hljs-keyword">if</span>&gt;<br>        &lt;<span class="hljs-keyword">if</span> test=<span class="hljs-string">&quot;indexLevel != null and indexLevel != &#x27;&#x27;&quot;</span>&gt; and e.index_level = #&#123;indexLevel&#125; &lt;/<span class="hljs-keyword">if</span>&gt;<br>        &lt;<span class="hljs-keyword">if</span> test=<span class="hljs-string">&quot;isCore != null and isCore != &#x27;&#x27;&quot;</span>&gt; and e.is_core = #&#123;isCore&#125; &lt;/<span class="hljs-keyword">if</span>&gt;<br>        &lt;<span class="hljs-keyword">if</span> test=<span class="hljs-string">&quot;isSort != null and isSort != &#x27;&#x27;&quot;</span>&gt; and e.is_sort = #&#123;isSort&#125; &lt;/<span class="hljs-keyword">if</span>&gt;<br>  &lt;/select&gt;<br></code></pre></td></tr></table></figure>

<p>根据字典类型（dictType）查询获取字典标签（dictLabel），给所有记录设置字典标签 / 业务类型。</p>
<p>默认指标等级（index_level）是2，该指标等级对应的指标类型为：DICT_TYPE_INDEX_56，即字典类型。根据字典类型查询字典库（dict_library）获取到的字典标签列表，并按字典数据（dictValue）升序排序。</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><code class="hljs java"><span class="hljs-comment">// 根据dict_type查询指标类型集合</span><br>    <span class="hljs-meta">@Select(&quot;select dict_value as dictValue, dict_label dictLabel, remark as remark from sys_dict_data where dict_type = #&#123;dictType&#125; ORDER BY dict_value&quot;)</span><br>    <span class="hljs-keyword">public</span> List&lt;SysDictData&gt; <span class="hljs-title function_">getIndexTypeList</span><span class="hljs-params">(String dictType)</span>;<br></code></pre></td></tr></table></figure>

<p>根据字典数据（dictValue）升序排序获取的字典标签（dictLabel）。每个指标名称都有所属指标类型（即字典标签 dictLabel），用指标类型（index_type）关联（dictValue）。</p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs java">Map&lt;String, String&gt; indexTypeMap = indexUtils.getIndexTypeMap(dictType);<br>list.forEach(data -&gt; data.setDictLabel(indexTypeMap.get(data.getIndexType())));<br></code></pre></td></tr></table></figure>

<p>一次三表联查 + 单表查询，我们查询到了完整的数据：</p>
<figure class="highlight json"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br></pre></td><td class="code"><pre><code class="hljs json"><span class="hljs-punctuation">&#123;</span><br>          <span class="hljs-attr">&quot;id&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;27777&quot;</span><span class="hljs-punctuation">,</span><br>          <span class="hljs-attr">&quot;indexParentValue&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-number">1.07</span><span class="hljs-punctuation">,</span><br>          <span class="hljs-attr">&quot;sortNum&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-number">1</span><span class="hljs-punctuation">,</span><br>          <span class="hljs-attr">&quot;belongDeptId&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-number">140600</span><span class="hljs-punctuation">,</span><br>          <span class="hljs-attr">&quot;indexTime&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;2023-09-02T00:00:00.000+0800&quot;</span><span class="hljs-punctuation">,</span><br>          <span class="hljs-attr">&quot;indexId&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;277&quot;</span><span class="hljs-punctuation">,</span><br>          <span class="hljs-attr">&quot;indexName&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;刑事“案-件比”&quot;</span><span class="hljs-punctuation">,</span><br>          <span class="hljs-attr">&quot;indexUntil&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;≤1.33&quot;</span><span class="hljs-punctuation">,</span><br>          <span class="hljs-attr">&quot;indexShort&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;刑事“案-件比”&quot;</span><span class="hljs-punctuation">,</span><br>          <span class="hljs-attr">&quot;indexType&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;0&quot;</span><span class="hljs-punctuation">,</span><br>          <span class="hljs-attr">&quot;indexTypeSecond&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;&quot;</span><span class="hljs-punctuation">,</span><br>          <span class="hljs-attr">&quot;indexTypeThird&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;&quot;</span><span class="hljs-punctuation">,</span><br>          <span class="hljs-attr">&quot;dictLabel&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;刑事检察&quot;</span><span class="hljs-punctuation">,</span><br>          <span class="hljs-attr">&quot;deptId&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-number">140600</span><span class="hljs-punctuation">,</span><br>          <span class="hljs-attr">&quot;deptName&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;朔州市院&quot;</span><span class="hljs-punctuation">,</span><br>          <span class="hljs-attr">&quot;sortNumStr&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;≤1.33&quot;</span><span class="hljs-punctuation">,</span><br>          <span class="hljs-attr">&quot;notification&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-number">1.33</span><span class="hljs-punctuation">,</span><br>          <span class="hljs-attr">&quot;indexOrder&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;1&quot;</span><span class="hljs-punctuation">,</span><br>          <span class="hljs-attr">&quot;isCore&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;0&quot;</span><span class="hljs-punctuation">,</span><br>          <span class="hljs-attr">&quot;isSort&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;0&quot;</span><span class="hljs-punctuation">,</span><br>          <span class="hljs-attr">&quot;indexLogo&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;0&quot;</span><span class="hljs-punctuation">,</span><br>          <span class="hljs-attr">&quot;groupSort&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;---&quot;</span><span class="hljs-punctuation">,</span><br>          <span class="hljs-attr">&quot;showId&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;1&quot;</span><br><span class="hljs-punctuation">&#125;</span><br></code></pre></td></tr></table></figure>

<p>删除了认证授权校验，方便接口测试</p>
<p><img src="https://gitee.com/deng-2022/pictures/raw/master/images/image-20240329152252713.png"></p>
<p><strong>废弃代码</strong></p>
<p>serviceImpl 层：</p>
<figure class="highlight reasonml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br></pre></td><td class="code"><pre><code class="hljs reasonml"><span class="hljs-comment">/**</span><br><span class="hljs-comment">     * 查询所有市院前三位指标数据(单项 + 组合)</span><br><span class="hljs-comment">     *</span><br><span class="hljs-comment">     * @param parentId   所属部门 id</span><br><span class="hljs-comment">     * @param time       日期</span><br><span class="hljs-comment">     * @param indexLevel 指标等级</span><br><span class="hljs-comment">     */</span><br>    @Override<br>    public ResponseVo select<span class="hljs-constructor">FirstShanxiDetails(BigInteger <span class="hljs-params">parentId</span>, String <span class="hljs-params">time</span>, String <span class="hljs-params">indexLevel</span>)</span> &#123;<br>        <span class="hljs-comment">// 1.查询得到所有市院部门id</span><br>        List&lt;BigInteger&gt; depIdList = <span class="hljs-keyword">new</span> ArrayList&lt;&gt;<span class="hljs-literal">()</span>;<br>        depIdList = busIndexLibraryMapper.select<span class="hljs-constructor">FirstShanxi(<span class="hljs-params">parentId</span>)</span>;<br><br>        <span class="hljs-comment">// 2.每个市院查询指标排名前三的指标数据</span><br>        List&lt;Integer&gt; singleResultList = null;<br>        List&lt;ResultVo&gt; multiResultList = null;<br>        <span class="hljs-keyword">for</span> (BigInteger belongDeptId : depIdList) &#123;<br>            <span class="hljs-comment">// 2.1.单项分析排名前三指标数据</span><br>            singleResultList = this.get<span class="hljs-constructor">SingleFirstShanxi(<span class="hljs-params">belongDeptId</span>, <span class="hljs-params">time</span>, <span class="hljs-params">indexLevel</span>)</span>;<br>            <span class="hljs-comment">// 2.2.组合分析排名前三指标数据</span><br>            multiResultList = this.get<span class="hljs-constructor">MultiFirstShanxi(<span class="hljs-params">belongDeptId</span>, <span class="hljs-params">time</span>, <span class="hljs-params">indexLevel</span>)</span>;<br>        &#125;<br><br>        <span class="hljs-comment">// 3.综合所有市院(全省)前三位指标数据</span><br><br>        <span class="hljs-comment">// 4.返回结果</span><br>        return null;<br>    &#125;<br><br>    <span class="hljs-comment">/**</span><br><span class="hljs-comment">     * 市院单项分析排名前三位指标数据</span><br><span class="hljs-comment">     *</span><br><span class="hljs-comment">     * @param belongDeptId 所属部门 id</span><br><span class="hljs-comment">     * @param time         日期</span><br><span class="hljs-comment">     * @param indexLevel   指标等级</span><br><span class="hljs-comment">     */</span><br>    public List&lt;ResultVo&gt; get<span class="hljs-constructor">SingleFirstShanxiDetails(BigInteger <span class="hljs-params">belongDeptId</span>, String <span class="hljs-params">time</span>, String <span class="hljs-params">indexLevel</span>)</span> &#123;<br>        String newTime = check<span class="hljs-constructor">Time(<span class="hljs-params">time</span>)</span>;<br>        String parentId = indexUtils.get<span class="hljs-constructor">ParentId(<span class="hljs-params">belongDeptId</span>)</span>;<br>        indexLevel = indexUtils.reset<span class="hljs-constructor">IndexLevel(<span class="hljs-params">parentId</span>, <span class="hljs-params">newTime</span>)</span>;<br>        String dictType = <span class="hljs-module-access"><span class="hljs-module"><span class="hljs-identifier">IndexUtils</span>.</span></span>get<span class="hljs-constructor">DictType(<span class="hljs-params">indexLevel</span>)</span>;<br>        List&lt;ResultVo&gt; <span class="hljs-built_in">list</span>;<br><br>        <span class="hljs-comment">// 获取朔州市检察院前三名指标项详情</span><br>        <span class="hljs-built_in">list</span> = busIndexLibraryMapper.get<span class="hljs-constructor">FirstXianDetails(<span class="hljs-params">null</span>, <span class="hljs-params">belongDeptId</span>, <span class="hljs-params">newTime</span>, <span class="hljs-params">indexLevel</span>, DictDataConstant.VALUE_LEVEL_ONE, DictDataConstant.IS_CORE_FALSE, DictDataConstant.IS_SORT_FALSE)</span>;<br>        List&lt;ResultVo&gt; list1 = busIndexLibraryMapper.get<span class="hljs-constructor">FirstXianDetails(<span class="hljs-params">null</span>, <span class="hljs-params">belongDeptId</span>, <span class="hljs-params">newTime</span>, <span class="hljs-params">indexLevel</span>, DictDataConstant.VALUE_LEVEL_THREE, DictDataConstant.IS_CORE_FALSE, DictDataConstant.IS_SORT_FALSE)</span>;<br>        <span class="hljs-keyword">if</span> (list1.size<span class="hljs-literal">()</span> &gt; <span class="hljs-number">0</span>) &#123;<br>            String indexIds = <span class="hljs-module-access"><span class="hljs-module"><span class="hljs-identifier">IndexUtils</span>.</span></span>get<span class="hljs-constructor">IndexIds(<span class="hljs-params">list1</span>)</span>;<br>            List&lt;ResultVo&gt; list2 = busIndexLibraryMapper.select<span class="hljs-constructor">RankingDetails(<span class="hljs-params">indexIds</span>, <span class="hljs-params">belongDeptId</span>, <span class="hljs-string">&quot;&quot;</span>, <span class="hljs-params">newTime</span>, <span class="hljs-params">indexLevel</span>, DictDataConstant.VALUE_LEVEL_TWO, DictDataConstant.IS_CORE_FALSE, DictDataConstant.IS_SORT_FALSE)</span>;<br>            <span class="hljs-keyword">if</span> (list2.size<span class="hljs-literal">()</span> &gt; <span class="hljs-number">0</span>) &#123;<br>                <span class="hljs-built_in">list</span>.add<span class="hljs-constructor">All(<span class="hljs-params">list2</span>)</span>;<br>            &#125;<br>        &#125;<br>        <span class="hljs-comment">// 设置指标列表序号</span><br>        this.set<span class="hljs-constructor">ShowIdNormal(<span class="hljs-params">list</span>)</span>;<br>        <span class="hljs-comment">// 设置业务类型标签</span><br>        this.set<span class="hljs-constructor">DictLabelByLevel(<span class="hljs-params">list</span>, <span class="hljs-params">dictType</span>)</span>;<br>        <span class="hljs-keyword">if</span> (!indexUtils.check<span class="hljs-constructor">IndexNumber(<span class="hljs-params">newTime</span>)</span>) &#123;<br>            this.reset<span class="hljs-constructor">IndexValue(<span class="hljs-params">list</span>)</span>;<br>        &#125;<br><br>        return <span class="hljs-built_in">list</span>;<br>    &#125;<br><br>    <span class="hljs-comment">/**</span><br><span class="hljs-comment">     * 市院组合分析排名前三位指标数据</span><br><span class="hljs-comment">     *</span><br><span class="hljs-comment">     * @param belongDeptId 所属部门 id</span><br><span class="hljs-comment">     * @param time         日期</span><br><span class="hljs-comment">     * @param indexLevel   指标等级</span><br><span class="hljs-comment">     */</span><br>    public List&lt;ResultVo&gt; get<span class="hljs-constructor">MultiFirstShanxiDetails(BigInteger <span class="hljs-params">belongDeptId</span>, String <span class="hljs-params">time</span>, String <span class="hljs-params">indexLevel</span>)</span> &#123;<br>        String newTime = check<span class="hljs-constructor">Time(<span class="hljs-params">time</span>)</span>;<br>        String parentId = indexUtils.get<span class="hljs-constructor">ParentId(<span class="hljs-params">belongDeptId</span>)</span>;<br>        indexLevel = indexUtils.reset<span class="hljs-constructor">IndexLevel(<span class="hljs-params">parentId</span>, <span class="hljs-params">newTime</span>)</span>;<br>        String dictType = <span class="hljs-module-access"><span class="hljs-module"><span class="hljs-identifier">IndexUtils</span>.</span></span>get<span class="hljs-constructor">DictType(<span class="hljs-params">indexLevel</span>)</span>;<br>        List&lt;ResultVo&gt; <span class="hljs-built_in">list</span>;<br><br>        <span class="hljs-comment">// 获取朔州市检察院前三名指标项详情</span><br>        <span class="hljs-built_in">list</span> = busIndexLibraryMapper.get<span class="hljs-constructor">FirstXianDetails(<span class="hljs-params">null</span>, <span class="hljs-params">belongDeptId</span>, <span class="hljs-params">newTime</span>, <span class="hljs-params">indexLevel</span>, DictDataConstant.VALUE_LEVEL_ONE, DictDataConstant.IS_CORE_FALSE, DictDataConstant.IS_SORT_FALSE)</span>;<br>        List&lt;ResultVo&gt; list1 = busIndexLibraryMapper.get<span class="hljs-constructor">FirstXianDetails(<span class="hljs-params">null</span>, <span class="hljs-params">belongDeptId</span>, <span class="hljs-params">newTime</span>, <span class="hljs-params">indexLevel</span>, DictDataConstant.VALUE_LEVEL_THREE, DictDataConstant.IS_CORE_FALSE, DictDataConstant.IS_SORT_FALSE)</span>;<br>        <span class="hljs-keyword">if</span> (list1.size<span class="hljs-literal">()</span> &gt; <span class="hljs-number">0</span>) &#123;<br>            String indexIds = <span class="hljs-module-access"><span class="hljs-module"><span class="hljs-identifier">IndexUtils</span>.</span></span>get<span class="hljs-constructor">IndexIds(<span class="hljs-params">list1</span>)</span>;<br>            List&lt;ResultVo&gt; list2 = busIndexLibraryMapper.select<span class="hljs-constructor">RankingDetails(<span class="hljs-params">indexIds</span>, <span class="hljs-params">belongDeptId</span>, <span class="hljs-string">&quot;&quot;</span>, <span class="hljs-params">newTime</span>, <span class="hljs-params">indexLevel</span>, DictDataConstant.VALUE_LEVEL_TWO, DictDataConstant.IS_CORE_FALSE, DictDataConstant.IS_SORT_FALSE)</span>;<br>            <span class="hljs-keyword">if</span> (list2.size<span class="hljs-literal">()</span> &gt; <span class="hljs-number">0</span>) &#123;<br>                <span class="hljs-built_in">list</span>.add<span class="hljs-constructor">All(<span class="hljs-params">list2</span>)</span>;<br>            &#125;<br>        &#125;<br>        <span class="hljs-comment">// 设置指标列表序号</span><br>        this.set<span class="hljs-constructor">ShowIdNormal(<span class="hljs-params">list</span>)</span>;<br>        <span class="hljs-comment">// 设置业务类型标签</span><br>        this.set<span class="hljs-constructor">DictLabelByLevel(<span class="hljs-params">list</span>, <span class="hljs-params">dictType</span>)</span>;<br>        <span class="hljs-keyword">if</span> (!indexUtils.check<span class="hljs-constructor">IndexNumber(<span class="hljs-params">newTime</span>)</span>) &#123;<br>            this.reset<span class="hljs-constructor">IndexValue(<span class="hljs-params">list</span>)</span>;<br>        &#125;<br><br>        return <span class="hljs-built_in">list</span>;<br>    &#125;<br></code></pre></td></tr></table></figure>

<figure class="highlight haxe"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br></pre></td><td class="code"><pre><code class="hljs haxe"><span class="hljs-comment">/**</span><br><span class="hljs-comment"> * 查询所有市院前三位指标个数(单项 + 组合)</span><br><span class="hljs-comment"> *</span><br><span class="hljs-comment"> * @param parentId   所属部门 id</span><br><span class="hljs-comment"> * @param time       日期</span><br><span class="hljs-comment"> * @param indexLevel 指标等级</span><br><span class="hljs-comment"> */</span><br>@Override<br><span class="hljs-keyword">public</span> ResponseVo selectFirstShanxi(BigInteger parentId, <span class="hljs-keyword">String</span> time, <span class="hljs-keyword">String</span> indexLevel) &#123;<br>    <span class="hljs-keyword">String</span> <span class="hljs-keyword">new</span><span class="hljs-type">Time</span> = checkTime(time);<br>    <span class="hljs-keyword">String</span> parentIdStr = <span class="hljs-keyword">String</span>.valueOf(parentId);<br>    indexLevel = indexUtils.resetIndexLevel(parentIdStr, <span class="hljs-keyword">new</span><span class="hljs-type">Time</span>);<br><br>    <span class="hljs-comment">// 1.查询得到所有市院部门id</span><br>    List&lt;BigInteger&gt; depIdList;<br>    depIdList = busIndexLibraryMapper.selectFirstShanxi(parentId);<br><br>    <span class="hljs-comment">// 2.每个市院查询指标排名前三的个数</span><br>    List&lt;Integer&gt; singleList;<br>    List&lt;List&lt;Integer&gt;&gt; singleResultList = <span class="hljs-keyword">new</span> <span class="hljs-type">ArrayList</span>&lt;&gt;();<br>    <span class="hljs-keyword">for</span> (BigInteger belongDeptId : <span class="hljs-type">depIdList</span>) &#123;<br>        <span class="hljs-comment">// 2.1.单项分析排名前三指标个数</span><br>        singleList = <span class="hljs-built_in">this</span>.getSingleFirstShanxi(belongDeptId, <span class="hljs-keyword">new</span><span class="hljs-type">Time</span>, indexLevel);<br>        singleResultList.add(singleList);<br>    &#125;<br><br>    <span class="hljs-comment">// 2.2.组合分析排名前三指标个数(去重)</span><br>    List&lt;ResultVo&gt; multiResultList = <span class="hljs-built_in">this</span>.getMultiFirstShanxi(parentId, <span class="hljs-keyword">new</span><span class="hljs-type">Time</span>, indexLevel);<br><br>    <span class="hljs-comment">// 3.综合所有市院(全省)前三位指标个数</span><br><br>    <span class="hljs-comment">// 4.返回结果</span><br>    <span class="hljs-keyword">return</span> <span class="hljs-literal">null</span>;<br>&#125;<br><br><span class="hljs-comment">/**</span><br><span class="hljs-comment"> * 市院单项分析排名前三位指标个数</span><br><span class="hljs-comment"> *</span><br><span class="hljs-comment"> * @param belongDeptId 所属部门 id</span><br><span class="hljs-comment"> * @param time         日期</span><br><span class="hljs-comment"> * @param indexLevel   指标等级</span><br><span class="hljs-comment"> */</span><br><span class="hljs-keyword">public</span> List&lt;Integer&gt; getSingleFirstShanxi(BigInteger belongDeptId, <span class="hljs-keyword">String</span> time, <span class="hljs-keyword">String</span> indexLevel) &#123;<br>    List&lt;<span class="hljs-keyword">String</span>&gt; sortNumList = <span class="hljs-keyword">new</span> <span class="hljs-type">ArrayList</span>&lt;&gt;();<br><br>    <span class="hljs-comment">// 各级指标数量</span><br>    List&lt;ResultVo&gt; indexNumList;<br>    <span class="hljs-comment">// 区间指标数量</span><br>    List&lt;Integer&gt; resultVoList = <span class="hljs-keyword">new</span> <span class="hljs-type">ArrayList</span>&lt;&gt;();<br>    <span class="hljs-comment">// 山西省</span><br>    <span class="hljs-comment">// 靠前方阵 1 - 3</span><br>    <span class="hljs-keyword">for</span> (int i = <span class="hljs-number">1</span>; i &lt;= <span class="hljs-number">3</span>; i++) &#123;<br>        sortNumList.add(<span class="hljs-keyword">String</span>.valueOf(i));<br>    &#125;<br>    <span class="hljs-comment">// 根据sortNum获取各排名指标个数</span><br>    <span class="hljs-keyword">for</span> (<span class="hljs-keyword">String</span> sortNum : <span class="hljs-type">sortNumList</span>) &#123;<br>        indexNumList = busIndexLibraryMapper.selectRankBySortNum(belongDeptId, time, indexLevel, sortNum,<br>                DictDataConstant.VALUE_LEVEL_FALSE, DictDataConstant.IS_CORE_FALSE, DictDataConstant.IS_SORT_FALSE);<br>        resultVoList.add(indexNumList.size());<br>    &#125;<br><br>    <span class="hljs-keyword">return</span> resultVoList;<br>&#125;<br><br><span class="hljs-comment">/**</span><br><span class="hljs-comment"> * 市院组合分析排名前三位指标个数</span><br><span class="hljs-comment"> *</span><br><span class="hljs-comment"> * @param belongDeptId 所属部门 id</span><br><span class="hljs-comment"> * @param time         日期</span><br><span class="hljs-comment"> * @param indexLevel   指标等级</span><br><span class="hljs-comment"> */</span><br><span class="hljs-keyword">public</span> List&lt;ResultVo&gt; getMultiFirstShanxi(BigInteger belongDeptId, <span class="hljs-keyword">String</span> time, <span class="hljs-keyword">String</span> indexLevel) &#123;<br>    <span class="hljs-keyword">String</span> <span class="hljs-keyword">new</span><span class="hljs-type">Time</span> = checkTime(time);<br>    List&lt;ResultVo&gt; resultList;<br><br>    List&lt;Integer&gt; sortRankList = <span class="hljs-keyword">new</span> <span class="hljs-type">ArrayList</span>&lt;&gt;();<br>    sortRankList.add(<span class="hljs-number">0</span>, <span class="hljs-number">1</span>);<br>    sortRankList.add(<span class="hljs-number">1</span>, <span class="hljs-number">2</span>);<br>    sortRankList.add(<span class="hljs-number">2</span>, <span class="hljs-number">3</span>);<br><br>    Map&lt;<span class="hljs-keyword">String</span>, Map&gt; allDeptSortMap = <span class="hljs-built_in">this</span>.getAllDeptSortMap(<span class="hljs-keyword">new</span><span class="hljs-type">Time</span>, belongDeptId.toString());<br>    Map&lt;BigInteger, Map&lt;Integer, List&lt;ResultVo&gt;&gt;&gt; singleDeptSortMap = allDeptSortMap.<span class="hljs-keyword">get</span>(<span class="hljs-string">&quot;single&quot;</span>);<br>    Map&lt;BigInteger, Map&lt;<span class="hljs-keyword">String</span>, List&lt;ResultVo&gt;&gt;&gt; groupDeptSortMap = allDeptSortMap.<span class="hljs-keyword">get</span>(<span class="hljs-string">&quot;disGroup&quot;</span>);<br><br>    List&lt;IndexFraction&gt; sortList = <span class="hljs-built_in">this</span>.getSortNumSum(<span class="hljs-keyword">new</span><span class="hljs-type">Time</span>, belongDeptId);<br>    sortList.sort((o1, o2) -&gt; o2.getFraction().compareTo(o1.getFraction()));<br><br>    <span class="hljs-comment">// 装配属性</span><br>    resultList = <span class="hljs-built_in">this</span>.transIndexFractionToResultVo(sortList);<br>    resultList.forEach(data -&gt; &#123;<br>        Map&lt;Integer, List&lt;ResultVo&gt;&gt; singleMap = singleDeptSortMap.<span class="hljs-keyword">get</span>(data.getDeptId());<br>        Map&lt;<span class="hljs-keyword">String</span>, List&lt;ResultVo&gt;&gt; groupMap = groupDeptSortMap.<span class="hljs-keyword">get</span>(data.getDeptId());<br><br>        Integer first = sortRankList.<span class="hljs-keyword">get</span>(<span class="hljs-number">0</span>);<br>        Integer second = sortRankList.<span class="hljs-keyword">get</span>(<span class="hljs-number">1</span>);<br>        data.setFirst((singleMap.containsKey(first) ? singleMap.<span class="hljs-keyword">get</span>(first).size() : <span class="hljs-type">0</span>)<br>                + (groupMap.containsKey(first.toString()) ? groupMap.<span class="hljs-keyword">get</span>(first.toString()).size() : <span class="hljs-type">0</span>));<br>        data.setSecond((singleMap.containsKey(second) ? singleMap.<span class="hljs-keyword">get</span>(second).size() : <span class="hljs-type">0</span>)<br>                + (groupMap.containsKey(second.toString()) ? groupMap.<span class="hljs-keyword">get</span>(second.toString()).size() : <span class="hljs-type">0</span>));<br><br>        <span class="hljs-keyword">if</span> (!indexUtils.checkDept(belongDeptId.toString())) &#123;<br>            Integer thild = sortRankList.<span class="hljs-keyword">get</span>(<span class="hljs-number">2</span>);<br>            data.setThird((singleMap.containsKey(thild) ? singleMap.<span class="hljs-keyword">get</span>(thild).size() : <span class="hljs-type">0</span>)<br>                    + (groupMap.containsKey(thild.toString()) ? groupMap.<span class="hljs-keyword">get</span>(thild.toString()).size() : <span class="hljs-type">0</span>));<br>        &#125;<br>    &#125;);<br><br>    <span class="hljs-comment">// 根据 sortNum, 使用Stream API 和 Lambda 表达式对列表进行排序</span><br>    <span class="hljs-keyword">return</span> resultList.stream()<br>            .sorted(Comparator.comparing(ResultVo:<span class="hljs-type"></span>:getSortNum)) <span class="hljs-comment">// 根据fieldName字段进行升序排序</span><br>            .collect(Collectors.toList());<br>&#125;<br></code></pre></td></tr></table></figure>

<p>service 层：</p>
<figure class="highlight markdown"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><code class="hljs markdown">/**<br><span class="hljs-bullet">    *</span> 查询所有市院前三位指标个数(单项 + 组合)<br><span class="hljs-bullet">    *</span><br>    * @return com.zw.business.domain.vo.ResponseVo<br><span class="hljs-bullet">    *</span> @Param parentId 部门Id<br><span class="hljs-bullet">    *</span> @Param time 查询年月<br><span class="hljs-code">    */</span><br><span class="hljs-code">   ResponseVo selectFirstShanxi(BigInteger parentId, String time, String indexLevel);</span><br><span class="hljs-code"></span><br>   /**<br><span class="hljs-bullet">    *</span> 查询所有市院前三位指标数据(单项 + 组合)<br><span class="hljs-bullet">    *</span><br>    * @return com.zw.business.domain.vo.ResponseVo<br><span class="hljs-bullet">    *</span> @Param belongDeptId 部门Id<br><span class="hljs-bullet">    *</span> @Param time 查询年月<br><span class="hljs-code">    */</span><br><span class="hljs-code">   ResponseVo selectFirstShanxiDetails(BigInteger parentId, String time, String indexLevel);</span><br><span class="hljs-code"></span><br></code></pre></td></tr></table></figure>

<p>Controller 层：</p>
<figure class="highlight less"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br></pre></td><td class="code"><pre><code class="hljs less"><span class="hljs-comment">/**</span><br><span class="hljs-comment"> * @return com.zw.business.domain.vo.ResponseVo</span><br><span class="hljs-comment"> * @description: 查询所有市院前三位指标个数(单项 + 组合)</span><br><span class="hljs-comment"> * 1</span><br><span class="hljs-comment"> * @Param: parentId 父部门Id</span><br><span class="hljs-comment"> * @Param: time 查询年月</span><br><span class="hljs-comment"> */</span><br><span class="hljs-variable">@RequestMapping</span>(<span class="hljs-string">&quot;/selectFirstShanxi&quot;</span>)<br>public ResponseVo <span class="hljs-built_in">selectFirstShanxi</span>(<span class="hljs-variable">@RequestParam</span> BigInteger parentId, <span class="hljs-variable">@RequestParam</span>(required = false, defaultValue = <span class="hljs-string">&quot;&quot;</span>) String time,<br>                                    <span class="hljs-variable">@RequestParam</span> String indexLevel) &#123;<br>    <span class="hljs-selector-tag">return</span> <span class="hljs-selector-tag">busIndexLibraryService</span><span class="hljs-selector-class">.selectFirstShanxi</span>(parentId, time, indexLevel);<br>&#125;<br><br><span class="hljs-comment">/**</span><br><span class="hljs-comment"> * @return com.zw.business.domain.vo.ResponseVo</span><br><span class="hljs-comment"> * @description: 查询所有市院前三位指标详情(单项 + 组合)</span><br><span class="hljs-comment"> * 1</span><br><span class="hljs-comment"> * @Param: parentId 父部门Id</span><br><span class="hljs-comment"> * @Param: time 查询年月</span><br><span class="hljs-comment"> */</span><br>@<span class="hljs-selector-tag">RequestMapping</span>(<span class="hljs-string">&quot;/selectFirstShanxiDetails&quot;</span>)<br><span class="hljs-selector-tag">public</span> <span class="hljs-selector-tag">ResponseVo</span> <span class="hljs-selector-tag">selectFirstShanxiDetails</span>(<span class="hljs-variable">@RequestParam</span> BigInteger parentId, <span class="hljs-variable">@RequestParam</span>(required = false, defaultValue = <span class="hljs-string">&quot;&quot;</span>) String time,<br>                                           <span class="hljs-variable">@RequestParam</span> String indexLevel) &#123;<br>    <span class="hljs-selector-tag">return</span> <span class="hljs-selector-tag">busIndexLibraryService</span><span class="hljs-selector-class">.selectFirstShanxiDetails</span>(parentId, time, indexLevel);<br>&#125;<br></code></pre></td></tr></table></figure>



<p>serviceImpl 层：</p>
<figure class="highlight livescript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br></pre></td><td class="code"><pre><code class="hljs livescript"><span class="hljs-comment">/**</span><br><span class="hljs-comment"> * 查询全省前三指标数量(1, 2, 3)</span><br><span class="hljs-comment"> *</span><br><span class="hljs-comment"> * @return ResponseVo</span><br><span class="hljs-comment"> * @Param parentId 父部门Id</span><br><span class="hljs-comment"> * @Param time 查询年月</span><br><span class="hljs-comment"> */</span><br>@Override<br>public ResponseVo selectSumSortNumQian(BigInteger parentId, <span class="hljs-built_in">String</span> time, <span class="hljs-built_in">String</span> indexLevel) &#123;<br>    <span class="hljs-built_in">String</span> newTime = checkTime(time);<br>    indexLevel = indexUtils.resetIndexLevel(parentId.toString(), newTime);<br><br>    List&lt;IndexFraction&gt; resultList;<br>    <span class="hljs-keyword">if</span> (checkFiftySixOrFortyEight(indexLevel)) &#123;<br>        <span class="hljs-regexp">// 全省前三指标数量(1, 2, 3) 计算组合指标排名 （组合指标 单项指标排名不做计算）</span><br><span class="hljs-regexp">        resultList = this.getSortNumSumQian(newTime, parentId);</span><br><span class="hljs-regexp">    &#125; else &#123;</span><br><span class="hljs-regexp">        //</span> 设置单项排名之和<br>        <span class="hljs-regexp">// 市/区县院指标排名之和排序</span><br><span class="hljs-regexp">        String dictType = IndexUtils.getDictType(indexLevel);</span><br><span class="hljs-regexp">        resultList = busIndexLibraryMapper.selectSortSumFraction(dictType, newTime, parentId, indexLevel, DictDataConstant.VALUE_LEVEL_ONE + &quot;,&quot; + DictDataConstant.VALUE_LEVEL_TWO, DictDataConstant.IS_CORE_FALSE, DictDataConstant.IS_SORT_FALSE);</span><br><span class="hljs-regexp">        resultList.sort(Comparator.comparing(IndexFraction::getFraction));</span><br><span class="hljs-regexp">    &#125;</span><br><span class="hljs-regexp"></span><br><span class="hljs-regexp">    return ResponseVo.returnResponse(200, &quot;成功&quot;, resultList);</span><br><span class="hljs-regexp">&#125;</span><br><span class="hljs-regexp"></span><br><span class="hljs-regexp">   private List&lt;IndexFraction&gt; getSortNumSumQian(String monthId, BigInteger parentId) &#123;</span><br><span class="hljs-regexp">        List&lt;IndexFraction&gt; resultList = new ArrayList&lt;&gt;();</span><br><span class="hljs-regexp">        //</span> <span class="hljs-number">1.</span>列举所有市院/区县院<br>        List&lt;SysDept&gt; deptTree = deptMapper.getDeptTree(Long.valueOf(parentId.toString()));<br>        <span class="hljs-regexp">// 2.获取全省（11地市）/全市（12区县）(1, 2, 3) 指标数据集合 （含未测算、未排名）</span><br><span class="hljs-regexp">        List&lt;ResultVo&gt; resultVos = indexUtils.selectQianMultipleValues(monthId, parentId.toString());</span><br><span class="hljs-regexp"></span><br><span class="hljs-regexp">        //</span> <span class="hljs-number">3.</span>单项指标 不含未测算 未排名<br>        List&lt;ResultVo&gt; logoZeroStream = resultVos.stream()<br>                .filter(s -&gt; DictDataConstant.DEFAULT_GROUP_SORT.equals(s.getGroupSort())<br>                        &amp;&amp; DictDataConstant.IS_CORE_FALSE.equals(s.getIsCore())<br>                        &amp;&amp; DictDataConstant.IS_SORT_FALSE.equals(s.getIsSort()))<br>                .collect(Collectors.toList());<br><br>        <span class="hljs-regexp">// 单项指标 按照 deptId分组</span><br><span class="hljs-regexp">        //</span> key: deptId.toString()    value: <span class="hljs-keyword">list</span><br>        <span class="hljs-built_in">Map</span>&lt;BigInteger, List&lt;ResultVo&gt;&gt; logoZeroDeptSortMap = logoZeroStream.stream()<br>                .collect(Collectors.groupingBy(ResultVo::getDeptId));<br><br>        <span class="hljs-regexp">// 4.组合指标集合</span><br><span class="hljs-regexp">        List&lt;ResultVo&gt; logoGroupStream = resultVos.stream()</span><br><span class="hljs-regexp">                .filter(s -&gt; !DictDataConstant.DEFAULT_GROUP_SORT.equals(s.getGroupSort()))</span><br><span class="hljs-regexp">                .collect(Collectors.toList())</span><br><span class="hljs-regexp">                .stream().sorted(Comparator.comparing(ResultVo::getIndexId)).collect(Collectors.toList());</span><br><span class="hljs-regexp">        //</span> 组合指标 按照deptId分组<br>        <span class="hljs-built_in">Map</span>&lt;BigInteger, List&lt;ResultVo&gt;&gt; groupDeptMap = logoGroupStream.stream().collect(Collectors.groupingBy(ResultVo::getDeptId));<br>        <span class="hljs-regexp">// 组合指标排名集合  去重</span><br><span class="hljs-regexp">        HashMap&lt;BigInteger, List&lt;Integer&gt;&gt; groupSortMap = new HashMap&lt;&gt;();</span><br><span class="hljs-regexp">        groupDeptMap.forEach((key, value) -&gt; &#123;</span><br><span class="hljs-regexp">            //</span> key 为 deptId<br>            <span class="hljs-regexp">// 组合指标 按照标识分组  *** 此处未按照indexType分组</span><br><span class="hljs-regexp">            Map&lt;String, List&lt;ResultVo&gt;&gt; oneDeptGroupMap = value.stream().collect(Collectors.groupingBy(ResultVo::getIndexLogo));</span><br><span class="hljs-regexp">            //</span> deptId key  value:<span class="hljs-keyword">list</span>&lt;Integer&gt;<br>            List&lt;Integer&gt; sortNumList = <span class="hljs-keyword">new</span> ArrayList&lt;&gt;();<br>            oneDeptGroupMap.forEach<span class="hljs-function"><span class="hljs-params">((key1, value1) -&gt; &#123;</span></span><br><span class="hljs-params"><span class="hljs-function">                <span class="hljs-regexp">// key: deptId.toString()+indexLogo    value: groupSort   deptId:11 * groupSort:14 = 154</span></span></span><br><span class="hljs-regexp"><span class="hljs-params"><span class="hljs-function">                //</span> groupSortMap.put(data.getKey().toString()+s.getKey(),s.getValue().get(<span class="hljs-number">0</span>).getGroupSort());</span></span><br><span class="hljs-params"><span class="hljs-function">                sortNumList.add(Integer.valueOf(value1.get(<span class="hljs-number">0</span>).getGroupSort()));</span></span><br><span class="hljs-params"><span class="hljs-function">            &#125;)</span>;</span><br><span class="hljs-function">            <span class="hljs-title">groupSortMap</span>.<span class="hljs-title">put</span><span class="hljs-params">(key, sortNumList)</span>;</span><br><span class="hljs-function">        &#125;);</span><br><span class="hljs-function"></span><br><span class="hljs-function">        // 5.排名之和累加 装填</span><br><span class="hljs-function">        <span class="hljs-title">deptTree</span>.<span class="hljs-title">forEach</span><span class="hljs-params">(data -&gt; &#123;</span></span><br><span class="hljs-params"><span class="hljs-function">            int num = <span class="hljs-number">0</span>;</span></span><br><span class="hljs-params"><span class="hljs-function">            List&lt;ResultVo&gt; sigList = logoZeroDeptSortMap.get(<span class="hljs-keyword">new</span> BigInteger(data.getDeptId().toString()));</span></span><br><span class="hljs-params"><span class="hljs-function">            <span class="hljs-keyword">for</span> (ResultVo resultVo : sigList) &#123;</span></span><br><span class="hljs-params"><span class="hljs-function">                num = num + (<span class="hljs-literal">null</span> == resultVo.getSortNum() ? <span class="hljs-number">0</span> : resultVo.getSortNum());</span></span><br><span class="hljs-params"><span class="hljs-function">            &#125;</span></span><br><span class="hljs-params"><span class="hljs-function"></span></span><br><span class="hljs-params"><span class="hljs-function">            <span class="hljs-keyword">if</span> (groupSortMap.containsKey(<span class="hljs-keyword">new</span> BigInteger(data.getDeptId().toString()))) &#123;</span></span><br><span class="hljs-params"><span class="hljs-function">                List&lt;Integer&gt; grouplist = groupSortMap.get(<span class="hljs-keyword">new</span> BigInteger(data.getDeptId().toString()));</span></span><br><span class="hljs-params"><span class="hljs-function">                <span class="hljs-keyword">for</span> (Integer integer : grouplist) &#123;</span></span><br><span class="hljs-params"><span class="hljs-function">                    num = num + integer;</span></span><br><span class="hljs-params"><span class="hljs-function">                &#125;</span></span><br><span class="hljs-params"><span class="hljs-function">            &#125;</span></span><br><span class="hljs-params"><span class="hljs-function"></span></span><br><span class="hljs-params"><span class="hljs-function">            resultList.add(<span class="hljs-keyword">new</span> IndexFraction(num, data.getDeptName(), Integer.valueOf(data.getDeptId().toString()), <span class="hljs-number">0</span>));</span></span><br><span class="hljs-params"><span class="hljs-function">        &#125;)</span>;</span><br><span class="hljs-function"></span><br><span class="hljs-function">        <span class="hljs-title">resultList</span>.<span class="hljs-title">sort</span><span class="hljs-params">(Comparator.comparing(IndexFraction::getFraction))</span>;</span><br><span class="hljs-function"></span><br><span class="hljs-function">        // 等值等排名</span><br><span class="hljs-function">        <span class="hljs-title">if</span> <span class="hljs-params">(CollectionUtils.isNotEmpty(resultList))</span> &#123;</span><br><span class="hljs-function">            <span class="hljs-title">int</span> <span class="hljs-title">sort</span> = 1;</span><br><span class="hljs-function">            <span class="hljs-title">for</span> <span class="hljs-params">(int j = <span class="hljs-number">0</span>; j &lt; resultList.size(); j++)</span> &#123;</span><br><span class="hljs-function">                <span class="hljs-title">if</span> <span class="hljs-params">(j == <span class="hljs-number">0</span>)</span> &#123;</span><br><span class="hljs-function">                    <span class="hljs-title">resultList</span>.<span class="hljs-title">get</span><span class="hljs-params">(j)</span>.<span class="hljs-title">setSortNum</span><span class="hljs-params">(sort)</span>;</span><br><span class="hljs-function">                &#125; <span class="hljs-title">else</span> &#123;</span><br><span class="hljs-function">                    <span class="hljs-title">if</span> <span class="hljs-params">(resultList.get(j - <span class="hljs-number">1</span>).getFraction().equals(resultList.get(j).getFraction()))</span> &#123;</span><br><span class="hljs-function">                        <span class="hljs-title">resultList</span>.<span class="hljs-title">get</span><span class="hljs-params">(j)</span>.<span class="hljs-title">setSortNum</span><span class="hljs-params">(resultList.get(j - <span class="hljs-number">1</span>).getSortNum())</span>;</span><br><span class="hljs-function">                    &#125; <span class="hljs-title">else</span> &#123;</span><br><span class="hljs-function">                        <span class="hljs-title">resultList</span>.<span class="hljs-title">get</span><span class="hljs-params">(j)</span>.<span class="hljs-title">setSortNum</span><span class="hljs-params">(sort)</span>;</span><br><span class="hljs-function">                    &#125;</span><br><span class="hljs-function">                &#125;</span><br><span class="hljs-function">                <span class="hljs-title">sort</span>++;</span><br><span class="hljs-function">            &#125;</span><br><span class="hljs-function">        &#125;</span><br><span class="hljs-function"></span><br><span class="hljs-function">        // 返回全省排名前三</span><br><span class="hljs-function">        <span class="hljs-title">return</span> <span class="hljs-title">resultList</span>.<span class="hljs-title">stream</span><span class="hljs-params">()</span></span><br><span class="hljs-function">                .<span class="hljs-title">limit</span><span class="hljs-params">(<span class="hljs-number">3</span>)</span></span><br><span class="hljs-function">                .<span class="hljs-title">collect</span><span class="hljs-params">(Collectors.toList())</span>;</span><br><span class="hljs-function">    &#125;</span><br><span class="hljs-function"></span><br><span class="hljs-function">/**</span><br><span class="hljs-function"> * 查询全省前三指标数据<span class="hljs-params">(<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>)</span></span><br><span class="hljs-function"> *</span><br><span class="hljs-function"> * @<span class="hljs-title">return</span> <span class="hljs-title">ResponseVo</span></span><br><span class="hljs-function"> * @<span class="hljs-title">Param</span> <span class="hljs-title">parentId</span> 父部门<span class="hljs-title">Id</span></span><br><span class="hljs-function"> * @<span class="hljs-title">Param</span> <span class="hljs-title">time</span> 查询年月</span><br><span class="hljs-function"> */</span><br><span class="hljs-function">@<span class="hljs-title">Override</span></span><br><span class="hljs-function"><span class="hljs-title">public</span> <span class="hljs-title">ResponseVo</span> <span class="hljs-title">selectSumSortNumQianDetails</span><span class="hljs-params">(BigInteger parentId, <span class="hljs-built_in">String</span> time, <span class="hljs-built_in">String</span> indexLevel)</span> &#123;</span><br><span class="hljs-function">    <span class="hljs-title">String</span> <span class="hljs-title">newTime</span> = <span class="hljs-title">checkTime</span><span class="hljs-params">(time)</span>;</span><br><span class="hljs-function">    <span class="hljs-title">indexLevel</span> = <span class="hljs-title">indexUtils</span>.<span class="hljs-title">resetIndexLevel</span><span class="hljs-params">(parentId.toString(), newTime)</span>;</span><br><span class="hljs-function"></span><br><span class="hljs-function">    <span class="hljs-title">List</span>&lt;<span class="hljs-title">IndexFraction</span>&gt; <span class="hljs-title">resultList</span>;</span><br><span class="hljs-function">    <span class="hljs-title">if</span> <span class="hljs-params">(checkFiftySixOrFortyEight(indexLevel))</span> &#123;</span><br><span class="hljs-function">        // 全省前三指标数据<span class="hljs-params">(<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>)</span> 计算组合指标排名 （组合指标 单项指标排名不做计算）</span><br><span class="hljs-function">        <span class="hljs-title">resultList</span> = <span class="hljs-title">this</span>.<span class="hljs-title">getSortNumSumQian</span><span class="hljs-params">(newTime, parentId)</span>;</span><br><span class="hljs-function">    &#125; <span class="hljs-title">else</span> &#123;</span><br><span class="hljs-function">        // 设置单项排名之和</span><br><span class="hljs-function">        // 市/区县院指标排名之和排序</span><br><span class="hljs-function">        <span class="hljs-title">String</span> <span class="hljs-title">dictType</span> = <span class="hljs-title">IndexUtils</span>.<span class="hljs-title">getDictType</span><span class="hljs-params">(indexLevel)</span>;</span><br><span class="hljs-function">        <span class="hljs-title">resultList</span> = <span class="hljs-title">busIndexLibraryMapper</span>.<span class="hljs-title">selectSortSumFraction</span><span class="hljs-params">(dictType, newTime, parentId, indexLevel, DictDataConstant.VALUE_LEVEL_ONE + <span class="hljs-string">&quot;,&quot;</span> + DictDataConstant.VALUE_LEVEL_TWO, DictDataConstant.IS_CORE_FALSE, DictDataConstant.IS_SORT_FALSE)</span>;</span><br><span class="hljs-function">        <span class="hljs-title">resultList</span>.<span class="hljs-title">sort</span><span class="hljs-params">(Comparator.comparing(IndexFraction::getFraction))</span>;</span><br><span class="hljs-function">    &#125;</span><br><span class="hljs-function"></span><br><span class="hljs-function">    <span class="hljs-title">return</span> <span class="hljs-title">ResponseVo</span>.<span class="hljs-title">returnResponse</span><span class="hljs-params">(<span class="hljs-number">200</span>, <span class="hljs-string">&quot;成功&quot;</span>, resultList)</span>;</span><br><span class="hljs-function">&#125;</span><br></code></pre></td></tr></table></figure>

<p>service 层：</p>
<figure class="highlight markdown"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br></pre></td><td class="code"><pre><code class="hljs markdown">/**<br><span class="hljs-bullet"> *</span> 查询全省前三指标数量(1, 2, 3)<br><span class="hljs-bullet"> *</span> 0<br><span class="hljs-bullet"> *</span><br> * @return ResponseVo<br><span class="hljs-bullet"> *</span> @Param parentId 父部门Id<br><span class="hljs-bullet"> *</span> @Param time 查询年月<br> <span class="hljs-emphasis">*/</span><br><span class="hljs-emphasis">ResponseVo selectSumSortNumQian(BigInteger parentId, String time, String indexLevel);</span><br><span class="hljs-emphasis"></span><br><span class="hljs-emphasis">/*</span>*<br><span class="hljs-bullet"> *</span> 查询全省前三指标数据(1, 2, 3)<br><span class="hljs-bullet"> *</span> 0<br><span class="hljs-bullet"> *</span><br> * @return ResponseVo<br><span class="hljs-bullet"> *</span> @Param parentId 父部门Id<br><span class="hljs-bullet"> *</span> @Param time 查询年月<br> <span class="hljs-emphasis">*/</span><br><span class="hljs-emphasis">ResponseVo selectSumSortNumQianDetails(BigInteger parentId, String time, String indexLevel);</span><br></code></pre></td></tr></table></figure>

<p>controller 层：</p>
<figure class="highlight less"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br></pre></td><td class="code"><pre><code class="hljs less"><span class="hljs-comment">/**</span><br><span class="hljs-comment"> * @return com.zw.business.domain.vo.ResponseVo</span><br><span class="hljs-comment"> * @description: 查询全省前三指标数量(1, 2, 3)</span><br><span class="hljs-comment"> * 0</span><br><span class="hljs-comment"> * @Param: parentId 父部门Id</span><br><span class="hljs-comment"> * @Param: time 查询年月</span><br><span class="hljs-comment"> */</span><br><span class="hljs-comment">// @RequestMapping(&quot;/selectSumSortNumQian&quot;)</span><br><span class="hljs-selector-tag">public</span> <span class="hljs-selector-tag">ResponseVo</span> <span class="hljs-selector-tag">selectSumSortNumQian</span>(<span class="hljs-variable">@RequestParam</span> BigInteger parentId, <span class="hljs-variable">@RequestParam</span>(required = false, defaultValue = <span class="hljs-string">&quot;&quot;</span>) String time,<br>                                       <span class="hljs-variable">@RequestParam</span> String indexLevel) &#123;<br>    <span class="hljs-selector-tag">return</span> <span class="hljs-selector-tag">busIndexLibraryService</span><span class="hljs-selector-class">.selectSumSortNumQian</span>(parentId, time, indexLevel);<br>&#125;<br><br><span class="hljs-comment">/**</span><br><span class="hljs-comment"> * @return com.zw.business.domain.vo.ResponseVo</span><br><span class="hljs-comment"> * @description: 查询全省前三指标数据(1, 2, 3)</span><br><span class="hljs-comment"> * 0</span><br><span class="hljs-comment"> * @Param: parentId 父部门Id</span><br><span class="hljs-comment"> * @Param: time 查询年月</span><br><span class="hljs-comment"> */</span><br><span class="hljs-comment">// @RequestMapping(&quot;/selectSumSortNumQianDetails&quot;)</span><br><span class="hljs-selector-tag">public</span> <span class="hljs-selector-tag">ResponseVo</span> <span class="hljs-selector-tag">selectSumSortNumQianDetails</span>(<span class="hljs-variable">@RequestParam</span> BigInteger parentId, <span class="hljs-variable">@RequestParam</span>(required = false, defaultValue = <span class="hljs-string">&quot;&quot;</span>) String time,<br>                                              <span class="hljs-variable">@RequestParam</span> String indexLevel) &#123;<br>    <span class="hljs-selector-tag">return</span> <span class="hljs-selector-tag">busIndexLibraryService</span><span class="hljs-selector-class">.selectSumSortNumQianDetails</span>(parentId, time, indexLevel);<br>&#125;<br></code></pre></td></tr></table></figure>



<h2 id="大同检察院"><a href="#大同检察院" class="headerlink" title="大同检察院"></a>大同检察院</h2><h3 id="后端-1"><a href="#后端-1" class="headerlink" title="后端"></a>后端</h3><p>模板路径，后续从配置文件读取</p>
<p><img src="https://gitee.com/deng-2022/pictures/raw/master/images/image-20240401105053573.png" alt="image-20240401105053573"></p>
<h3 id="前端-1"><a href="#前端-1" class="headerlink" title="前端"></a>前端</h3><p>同样的，修改请求的后端地址为本地的 8090 端口</p>
<p><strong>若依前端出现报错，解决方法：</strong></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/m0_68226879/article/details/131043610">若依报错解决_&gt; ruoyi@3.8.6 dev &gt; vue-cli-service serve info sta-CSDN博客</a></p>
<figure class="highlight elixir"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs elixir"><span class="hljs-variable">$env</span><span class="hljs-symbol">:NODE_OPTIONS=<span class="hljs-string">&quot;--openssl-legacy-provider&quot;</span></span><br></code></pre></td></tr></table></figure>

<p>执行这条命令，确实百分百永久解决问题</p>
<h2 id="检察院可视化"><a href="#检察院可视化" class="headerlink" title="检察院可视化"></a>检察院可视化</h2><p><a target="_blank" rel="noopener" href="https://baijiahao.baidu.com/s?id=1792024287159615336&wfr=spider&for=pc">丰子恺经典语录34句，精辟走心，句句看透人生，让你受益一生！ (baidu.com)</a></p>
<h3 id="导入数据"><a href="#导入数据" class="headerlink" title="导入数据"></a>导入数据</h3><p>IDEA 书签</p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_38249409/article/details/136929665">【效率提升】IDEA中书签功能的妙用_idea 书签-CSDN博客</a></p>
<p>Spring MySQL 配置：</p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/dingxingmei/article/details/101053858">MySQL 之 InvalidConnectionAttributeException，SQLNonTransientConnectionException_sqlnontransientconnectionexception: server shutdow-CSDN博客</a></p>
<p><strong>MySQL 的这行配置还有点门道：</strong></p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">url:</span> <span class="hljs-string">jdbc:mysql://122.9.51.171:3306/test_shuozhou?serverTimezone=UTC&amp;allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=true&amp;failOverReadOnly=false&amp;useSSL=false&amp;characterEncoding=utf-8</span><br></code></pre></td></tr></table></figure>



<p>Postman 测试文件上传接口：</p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/haduwi/article/details/111318279">Postman 上传文件 返回 500 报错 “Current request is not a multipart request” 解决_postman current request is not a multipart request-CSDN博客</a></p>
<p>Excel 表格修改后缀：</p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_40014707/article/details/114318042">The supplied data appears to be in the OLE2 Format.-CSDN博客</a></p>
<h3 id="推送代码"><a href="#推送代码" class="headerlink" title="推送代码"></a>推送代码</h3><p><a target="_blank" rel="noopener" href="https://blog.csdn.net/m0_61916154/article/details/134822207">org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘his-CSDN博客</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/u011628993/article/details/121751557">部署项目 Failure obtaining db row lock: Table ‘XXX.qrtz_LOCKS‘ doesn‘t exist-CSDN博客</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/m0_61916154/article/details/134822207">org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘his-CSDN博客</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/u011628993/article/details/121751557">部署项目 Failure obtaining db row lock: Table ‘XXX.qrtz_LOCKS‘ doesn‘t exist-CSDN博客</a></p>
<p>3.解决方法：</p>
<ul>
<li>(1)win+R，打开命令提示符框，输入cmd，进入命令提示符</li>
<li>(2)输入netstat -aon | findstr 1099，找到占用1099端口的进程ID：PID</li>
<li>(3)输入taskkill -f -pid PID</li>
<li>(4)重启Tomcat</li>
</ul>
<h2 id="持续学习"><a href="#持续学习" class="headerlink" title="持续学习"></a>持续学习</h2><blockquote>
<p>2024年5月31日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/RegSoleil/article/details/125456245">JSP运行原理_jsp网页运行原理-CSDN博客</a></p>

                
              </div>
            
            <hr/>
            <div>
              <div class="post-metas my-3">
  
    <div class="post-meta mr-3 d-flex align-items-center">
      <i class="iconfont icon-category"></i>
      

<span class="category-chains">
  
  
    
      <span class="category-chain">
        
  <a href="/categories/JavaWeb/" class="category-chain-item">JavaWeb</a>
  
  
    <span>></span>
    
  <a href="/categories/JavaWeb/%E7%BB%8F%E9%AA%8C/" class="category-chain-item">经验</a>
  
  

  

      </span>
    
  
</span>

    </div>
  
  
    <div class="post-meta">
      <i class="iconfont icon-tags"></i>
      
        <a href="/tags/%E7%BB%8F%E9%AA%8C/">#经验</a>
      
        <a href="/tags/JavaWeb/">#JavaWeb</a>
      
    </div>
  
</div>


              
  

  <div class="license-box my-3">
    <div class="license-title">
      <div>从零开始的 JavaWeb 之旅</div>
      <div>http://example.com/2023/06/03/从零开始的 JavaWeb 之旅/</div>
    </div>
    <div class="license-meta">
      
        <div class="license-meta-item">
          <div>作者</div>
          <div>Memory</div>
        </div>
      
      
        <div class="license-meta-item license-meta-date">
          <div>发布于</div>
          <div>2023年6月3日</div>
        </div>
      
      
        <div class="license-meta-item license-meta-date">
          <div>更新于</div>
          <div>2024年6月3日</div>
        </div>
      
      
        <div class="license-meta-item">
          <div>许可协议</div>
          <div>
            
              
              
                <a target="_blank" href="https://creativecommons.org/licenses/by/4.0/">
                  <span class="hint--top hint--rounded" aria-label="BY - 署名">
                    <i class="iconfont icon-by"></i>
                  </span>
                </a>
              
            
          </div>
        </div>
      
    </div>
    <div class="license-icon iconfont"></div>
  </div>



              
                <div class="post-prevnext my-3">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/2023/06/03/%E6%88%91%E7%9A%84%E7%BC%96%E7%A8%8B%E4%B9%8B%E6%97%85%EF%BC%9A%E5%A4%A7%E5%AD%A6%E5%AD%A6%E4%B9%A0%E8%AE%B0%E5%BD%95%E4%B8%8E%E6%88%90%E9%95%BF%E7%BB%8F%E5%8E%86/" title="我的编程之旅：大学学习记录与成长经历">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">我的编程之旅：大学学习记录与成长经历</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/2023/05/27/%E5%A4%A7%E9%81%93%E8%87%B3%E7%AE%80%EF%BC%9A%E5%BF%AB%E9%80%9F%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2%E4%B8%8E%E6%96%87%E6%A1%A3%E7%AB%99%E7%82%B9%E7%9A%84%E7%BB%88%E6%9E%81%E6%8C%87%E5%8D%971.0/" title="大道至简：快速搭建博客与文档站点的终极指南1.0">
                        <span class="hidden-mobile">大道至简：快速搭建博客与文档站点的终极指南1.0</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            
  
  
    <article id="comments">
      

    </article>
  


          </article>
        </div>
      </div>
    </div>

    <div class="side-col d-none d-lg-block col-lg-2">
      
  <aside class="sidebar" style="margin-left: -1rem">
    <div id="toc">
  <p class="toc-header">
    <i class="iconfont icon-list"></i>
    <span>目录</span>
  </p>
  <div class="toc-body" id="toc-body"></div>
</div>



  </aside>


    </div>
  </div>
</div>





  



  



  



  



  







    

    
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v" for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>

    

    
  </main>

  <footer>
    <div class="footer-inner">
  
    <div class="footer-content">
       <a href="https://hexo.fluid-dev.com/docs/guide/" target="_blank" rel="nofollow noopener"> <span>Memory | 个人文档站点</span> </a>
<i class="iconfont icon-love"></i> <a href="https://hexo.fluid-dev.com/docs/guide/" target="_blank" rel="nofollow noopener"> <span>配置指南 | Hexo Fluid 用户手册</span> </a>   
    </div>
  
  
    <div class="statistics">
  
  

  
    
      <span id="leancloud-site-pv-container" style="display: none">
        总访问量 
        <span id="leancloud-site-pv"></span>
         次
      </span>
    
    
      <span id="leancloud-site-uv-container" style="display: none">
        总访客数 
        <span id="leancloud-site-uv"></span>
         人
      </span>
    
    

  
</div>

  
  
    <!-- 备案信息 ICP for China -->
    <div class="beian">
  <span>
    <a href="http://beian.miit.gov.cn/" target="_blank" rel="nofollow noopener">
      京ICP证123456号
    </a>
  </span>
  
    
      <span>
        <a
          href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=12345678"
          rel="nofollow noopener"
          class="beian-police"
          target="_blank"
        >
          
            <span style="visibility: hidden; width: 0">|</span>
            <img src="/img/police_beian.png" alt="police-icon"/>
          
          <span>京公网安备12345678号</span>
        </a>
      </span>
    
  
</div>

  
  
</div>

  </footer>

  <!-- Scripts -->
  
  <script  src="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://lib.baomitu.com/jquery/3.6.0/jquery.min.js" ></script>
<script  src="https://lib.baomitu.com/twitter-bootstrap/4.6.1/js/bootstrap.min.js" ></script>
<script  src="/js/events.js" ></script>
<script  src="/js/plugins.js" ></script>


  <script  src="https://lib.baomitu.com/typed.js/2.0.12/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var subtitle = document.getElementById('subtitle');
      if (!subtitle || !typing) {
        return;
      }
      var text = subtitle.getAttribute('data-typed-text');
      
        typing(text);
      
    })(window, document);
  </script>







  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/tocbot/4.18.2/tocbot.min.js', function() {
    var toc = jQuery('#toc');
    if (toc.length === 0 || !window.tocbot) { return; }
    var boardCtn = jQuery('#board-ctn');
    var boardTop = boardCtn.offset().top;

    window.tocbot.init(Object.assign({
      tocSelector     : '#toc-body',
      contentSelector : '.markdown-body',
      linkClass       : 'tocbot-link',
      activeLinkClass : 'tocbot-active-link',
      listClass       : 'tocbot-list',
      isCollapsedClass: 'tocbot-is-collapsed',
      collapsibleClass: 'tocbot-is-collapsible',
      scrollSmooth    : true,
      includeTitleTags: true,
      headingsOffset  : -boardTop,
    }, CONFIG.toc));
    if (toc.find('.toc-list-item').length > 0) {
      toc.css('visibility', 'visible');
    }

    Fluid.events.registerRefreshCallback(function() {
      if ('tocbot' in window) {
        tocbot.refresh();
        var toc = jQuery('#toc');
        if (toc.length === 0 || !tocbot) {
          return;
        }
        if (toc.find('.toc-list-item').length > 0) {
          toc.css('visibility', 'visible');
        }
      }
    });
  });
</script>


  <script src=https://lib.baomitu.com/clipboard.js/2.0.11/clipboard.min.js></script>

  <script>Fluid.plugins.codeWidget();</script>


  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/anchor-js/4.3.1/anchor.min.js', function() {
    window.anchors.options = {
      placement: CONFIG.anchorjs.placement,
      visible  : CONFIG.anchorjs.visible
    };
    if (CONFIG.anchorjs.icon) {
      window.anchors.options.icon = CONFIG.anchorjs.icon;
    }
    var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
    var res = [];
    for (var item of el) {
      res.push('.markdown-body > ' + item.trim());
    }
    if (CONFIG.anchorjs.placement === 'left') {
      window.anchors.options.class = 'anchorjs-link-left';
    }
    window.anchors.add(res.join(', '));

    Fluid.events.registerRefreshCallback(function() {
      if ('anchors' in window) {
        anchors.removeAll();
        var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
        var res = [];
        for (var item of el) {
          res.push('.markdown-body > ' + item.trim());
        }
        if (CONFIG.anchorjs.placement === 'left') {
          anchors.options.class = 'anchorjs-link-left';
        }
        anchors.add(res.join(', '));
      }
    });
  });
</script>


  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.js', function() {
    Fluid.plugins.fancyBox();
  });
</script>


  <script>Fluid.plugins.imageCaption();</script>

  <script  src="/js/local-search.js" ></script>

  <script defer src="/js/leancloud.js" ></script>





<!-- 主题的启动项，将它保持在最底部 -->
<!-- the boot of the theme, keep it at the bottom -->
<script  src="/js/boot.js" ></script>


  

  <noscript>
    <div class="noscript-warning">博客在允许 JavaScript 运行的环境下浏览效果更佳</div>
  </noscript>
</body>
</html>
